listbox: Fix a crash during keynav
authorMatthias Clasen <mclasen@redhat.com>
Fri, 15 Dec 2017 23:46:21 +0000 (18:46 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 15 Dec 2017 23:48:50 +0000 (18:48 -0500)
commit4573d2d19b91a1c4152e74b0582d36a8b0f2dc13
treeb791346f98ca624a868432e616366aa1ab60a8da
parentcb9867cb488bbb4ced4d710af4e61fdb3f86a899
listbox: Fix a crash during keynav

The code was asserting something that was not always holding
true. We can hit row == NULL here on page-up too. Handle that
case by moving to the first row.

https://bugzilla.gnome.org/show_bug.cgi?id=791549
gtk/gtklistbox.c